Allow hiding of modified custom widgets.
authorChong Yidong <cyd@stupidchicken.com>
Sat, 16 Oct 2010 20:36:20 +0000 (16:36 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 16 Oct 2010 20:36:20 +0000 (16:36 -0400)
commite1eb8c61dd99c6a6ca9f9d396d6a3c7cb6b69d76
treeb43cae80267a45f6eeda93a2c9c3f824161f605e
parentfb506f37c4b11cb8b9476906aa70ad2e9e2bad72
Allow hiding of modified custom widgets.

* cus-edit.el (custom-variable, custom-face): Combine the
:inhibit-magic and :display-style properties into a single
:custom-style property.
(custom-toggle-hide-variable, custom-toggle-hide-face): New
functions.  If hiding an edited value, save it to :shown-value.
(custom-variable-value-create, custom-face-value-create): Use
them.
(custom-magic-reset): Allow magic property to be unset.

* cus-theme.el (custom-theme-add-var-1)
(custom-theme-add-face-1): Use the :custom-style property.

* custom.el: (custom-theme-load-path): Doc fix.
lisp/ChangeLog
lisp/cus-edit.el
lisp/cus-theme.el
lisp/custom.el